<template>
  <div>
    <p>money: {{money}}</p>
    <hr>
    <Hello :money="money" :age="18" @updateMoney="money -= $event">
      <div>Hello</div>
      <template #test>
        <div>World</div>
      </template>
    </Hello>
  </div>
</template>

<script>
import { ref } from 'vue';
import Hello from './Hello.vue';

export default {
  components: {
    Hello
  },
  setup () {
    const money = ref(100)

    return {
      money
    }
  }
}
</script>

<style lang="scss" scoped>

</style>